package constractdemo;

/**
 * @classname:Futher
 * @description:
 * @author: Mr.Z
 * @date: 2020/11/29 16:25
 * @version: 0.1
 * @since:1.8
 */
public class Futher {
    private String name;

    public Futher(String name) {
        this.name = name;
        System.out.println("父类有参构造");
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    static {
        System.out.println("父类static到代码块");
    }
    {
        System.out.println("父类普通代码块");
    }

    public Futher() {
        System.out.println("父类无参构造构造方法");
    }

}
